package cn.iocoder.yudao.module.wms.controller.admin.checkvouch.vo;

import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.location.LocationDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.person.PersonDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.warehouse.WarehouseDO;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 盘点 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CheckvouchRespVO implements VO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29648")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "流水号")
    @ExcelProperty("流水号")
    private String code;
    /**
     * 业务员编码
     */
    @Schema(description = "业务员ID")
    @Trans(type = TransType.SIMPLE, target = PersonDO.class, fields = "name", ref = "personName")
    private Integer personId;
    private String personName;
    /**
     * 部门编码
     */
    @Schema(description = "部门ID")
    @Trans(type = TransType.SIMPLE, target = DeptDO.class, fields = "name", ref = "deptName")
    private Integer deptId;
    private String deptName;

    /**
     * 仓库编码
     */
    @Schema(description = "仓库ID")
    @Trans(type = TransType.SIMPLE, target = WarehouseDO.class, fields = "name", ref = "warehouseName")
    private Integer warehouseId;
    private String warehouseName;
    @Schema(description = "货位ID")
    @Trans(type = TransType.SIMPLE, target = LocationDO.class, fields = "name", ref = "locationName")
    private Integer locationId;
    private String locationName;

    @Schema(description = "订单日期")
    @ExcelProperty("订单日期")
    private LocalDateTime ddate;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String cmemo;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    @ExcelProperty("创建人")
    private Long createBy;

    @Schema(description = "变更人")
    @ExcelProperty("变更人")
    private Long updateBy;
    private Integer productionOrderId;
    /**
     * 审批结果
     *
     * 枚举 {@link}
     * 考虑到简单，所以直接复用了 BpmProcessInstanceStatusEnum 枚举，也可以自己定义一个枚举哈
     */
    private Integer status;

    /**
     * 对应的流程编号
     *
     * 关联 ProcessInstance 的 id 属性
     */
    private String processInstanceId;
}